package me.domain;

/**
 * 管理员实体类，用于封装Admin对象
 *
 * @author Rainh
 */
public class Admin {

    /**
     * 定义Admin的属性，只需要账号和密码就行
     * 账号   account
     * 密码   password
     */
    private String account;
    private String password;

    /**
     * 无参构造方法
     */
    public Admin() {
    }

    /**
     * 带参构造方法
     * @param account
     * @param password
     */
    public Admin(String account, String password) {
        this.account = account;
        this.password = password;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "account='" + account + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
